package com.junglone.gateway.admin.dao.impl;

import java.util.List;

import com.junglone.gateway.admin.domain.TestPerson;
import com.mongodb.client.result.DeleteResult;
import com.mongodb.client.result.UpdateResult;
import org.springframework.data.mongodb.core.query.Query;
import org.springframework.data.mongodb.core.query.Update;
import org.springframework.stereotype.Repository;

/**
 * Description:
 *
 * @author junglone: <a href="mailto:cjlnzb@hotmail.com">cjlnzb@hotmail.com</a>
 * @since 2021/03/23 17:50
 */
@Repository
public class MongoTestDaoImpl extends AbstractMongoDaoImpl<TestPerson> {

	@Override
	public TestPerson insert(TestPerson testPerson) {

		return super.insert(testPerson);
	}

	@Override
	public TestPerson findOne(Query query, Class<TestPerson> entityClass) {
		return super.findOne(query, entityClass);
	}

	@Override
	public long count(Query query, Class<TestPerson> entityClass) {
		return super.count(query, entityClass);
	}

	@Override
	public List<TestPerson> findAll(Query query, Class<TestPerson> entityClass) {
		return super.findAll(query, entityClass);
	}

	@Override
	public UpdateResult update(Query query, Update update, Class<TestPerson> entityClass) {
		return super.update(query, update, entityClass);
	}

	@Override
	public void createCollection(String collectionName) {

	}

    @Override
    public DeleteResult remove(Query query, Class<TestPerson> entityClass) {

        return super.remove(query, entityClass);
    }
}
